<template>
  <span class="undo" v-if="num.result===null">{{myflag+1}}: 未完成</span>
  <span class="right" v-else-if="num.left+num.right===num.result">{{myflag+1}}: 正确</span>
  <span class="error" v-else>{{myflag+1}}: 错误</span>
</template>

<script>
export default {
    name:"TeaTip",
     props:{
        num:{
            type:Object,
            required:true
        },
        myflag:{
            type:Number,
            required:true
        }
        
    },
};
</script>

<style scoped>
.right {
  color: green;
}
.error {
  color: red;
}
.undo {
  color: #ccc;
}
</style>